//
//  AlbumCell.m
//  iOS-CtrlV
//
//  Created by 龚 杰 on 13-1-6.
//  Copyright (c) 2013年 Wang Li. All rights reserved.
//

#import "AlbumCell.h"

@implementation AlbumCell
@synthesize albumView1 = m_AlbumView1;
@synthesize albumView2 = m_AlbumView2;
@synthesize num;
@synthesize delegate;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        m_AlbumView1 = [[AlbumView alloc] initWithFrame:CGRectMake(10,10,145,180)];
        m_AlbumView1.deleagate = self;
        [self addSubview:m_AlbumView1];
        m_AlbumView2 = [[AlbumView alloc] initWithFrame:CGRectMake(165,10,145,180)];
        m_AlbumView2.deleagate = self;
        [self addSubview:m_AlbumView2];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma -mark
#pragma mark AlbumViewDelegate
- (void)getAlbumViewTag:(AlbumView*)_albumView
{
    if (delegate!=nil&&_albumView!=nil) {
        [delegate getAlbumTag:_albumView.tag];
    }
}
- (void)dealloc
{
    [m_AlbumView1 release];
    [m_AlbumView2 release];
    [super dealloc];
}
@end
